<?php
/**
 * Created by PhpStorm.
 * User: 554665488
 * Date: 2018-6-17
 * Time: 19:24
 * @description:
 * @Author: yfl
 * @QQ 554665488
 */

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class PayOrder extends Model
{
    protected $table = 'pay_order';

    //支付流水
    public function cashLog()
    {
        //一对一
        return $this->hasOne(CashLog::class,'log_id');
    }

    //用户
    public function user()
    {
        return $this->belongsTo(UserModel::class,'user_id','id');
    }

}